export const getDoctorListApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/doctor/queryListByPage`, data)
	return res
}
// 拜师
export const apprenticeshipApi = async (doctorCode, memberCode, apprenticeName) => {
	const {
		data: res
	} = await uni.$http.get(`/api/doctor/apprenticeship?doctorCode=${doctorCode}&memberCode=${memberCode}&apprenticeName=${apprenticeName}`)
	return res
}
// 查师徒列表
export const findDoctorByTypeApi = async (type) => {
	const {
		data: res
	} = await uni.$http.post(`/api/doctor/findDoctorByType/${type}`)
	return res
}

// 修改医生名下预约订单状态
export const updateStatusByType = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/orderInfo/updateStatusByType`, data)
	return res
}
